<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script src="./vue.js"></script>
  <div id="app">
    {{  1+2  }}
    <div>{{tips}}反转的结果是:</div>
    {{tips.split('').reverse().join('')}}
    <div :title="'box' + index" style="background-color: pink;">{{'box' + index}}</div>
  </div>
  <script>
  const vm = new Vue({
    el:'#app',
    data:{
      tips:'123',
      index:'1'
    }
  })
  </script>
</body>
</html>